package org.hpin.asset.service;

import java.util.List;

import org.hpin.asset.dao.DistributedDao;
import org.hpin.asset.entity.Distributed;
import org.hpin.common.core.orm.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service(value = "org.hpin.asset.service.DistributedService")
@Transactional(rollbackFor = Exception.class)
public class DistributedService extends BaseService{
	@Autowired
	private DistributedDao dao;
	public List findDistributedByAttribute(Class clazz,String attribute,String value){
		return dao.findDistributedByAttribute(clazz, attribute, value);
	}
	public void updateDistributed(Distributed distributed ,String id){
		dao.updateDistributed(distributed,id);
	}
}
